﻿using System.ComponentModel;
using System.Drawing;
using DevExpress.XtraBars.Customization;

namespace Com.OpenCode.Framework.DevForm
{
    /// <summary>
    ///     工具栏自定义窗体汉化。
    /// </summary>
    public class CNBarCustomizationLocalizer : CustomizationControl
    {
        public CNBarCustomizationLocalizer()
        {
            InitializeComponent();
        }

        private Container components = null;

        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            tpOptions.SuspendLayout();
            tpCommands.SuspendLayout();
            tpToolbars.SuspendLayout();
            ((ISupportInitialize) (toolBarsList)).BeginInit();
            ((ISupportInitialize) (lbCommands)).BeginInit();
            ((ISupportInitialize) (lbCategories)).BeginInit();
            ((ISupportInitialize) (cbOptionsShowFullMenus.Properties)).BeginInit();
            ((ISupportInitialize) (cbOptions_showFullMenusAfterDelay.Properties)).BeginInit();
            ((ISupportInitialize) (cbOptions_showTips.Properties)).BeginInit();
            ((ISupportInitialize) (cbOptions_ShowShortcutInTips.Properties)).BeginInit();
            ((ISupportInitialize) (tabControl)).BeginInit();
            tabControl.SuspendLayout();
            ((ISupportInitialize) (tbNBDlgName.Properties)).BeginInit();
            pnlNBDlg.SuspendLayout();
            ((ISupportInitialize) (cbOptions_largeIcons.Properties)).BeginInit();
            ((ISupportInitialize) (cbOptions_MenuAnimation.Properties)).BeginInit();
            SuspendLayout();


            btClose.Text = "关闭";
            btResetBar.Text = "重新设置(&R)";
            btRenameBar.Text = "重命名(&E)";
            btNewBar.Text = "新建(&N)";
            btDeleteBar.Text = "删除(&D)";
            btOptions_Reset.Text = "重置惯用数据(&R)";
            btNBDlgCancel.Text = "取消";
            btNBDlgOk.Text = "确定";
            tpOptions.Size = new Size(354, 246);
            tpOptions.Text = "选项(&O)";
            tpCommands.Text = "命令(&C)";
            tpToolbars.Text = "工具栏(&B)";
            cbOptionsShowFullMenus.Properties.Caption = "始终显示整个菜单(&N)";
            cbOptions_showFullMenusAfterDelay.Properties.Caption = "鼠标指针短暂停留后显示完整菜单(&U)";
            cbOptions_largeIcons.Properties.Caption = "大图标(&L)";
            cbOptions_showTips.Properties.Caption = "显示关于工具栏屏幕提示(&T)";
            cbOptions_ShowShortcutInTips.Properties.Caption = "在屏幕提示中显示快捷键(&H)";
            lbDescCaption.Text = "详细说明";
            lbOptions_Other.Text = "其它";
            lbOptions_PCaption.Text = "个性化菜单和工具栏";
            lbCategoriesCaption.Text = "类别:";
            lbCommandsCaption.Text = "命令:";
            lbToolbarCaption.Text = "工具栏:";
            lbOptions_MenuAnimation.Text = "菜单动画设置(&M):";
            lbNBDlgCaption.Text = "工具栏名称(&T)";
            lbCommands.Appearance.BackColor = SystemColors.Window;
            lbCommands.Appearance.Options.UseBackColor = true;
            Name = "XtraBarCustomizationLocalizer_CN";
            tpOptions.ResumeLayout(false);
            tpCommands.ResumeLayout(false);
            tpToolbars.ResumeLayout(false);
            ((ISupportInitialize) (toolBarsList)).EndInit();
            ((ISupportInitialize) (lbCommands)).EndInit();
            ((ISupportInitialize) (lbCategories)).EndInit();
            ((ISupportInitialize) (cbOptionsShowFullMenus.Properties)).EndInit();
            ((ISupportInitialize) (cbOptions_showFullMenusAfterDelay.Properties)).EndInit();
            ((ISupportInitialize) (cbOptions_showTips.Properties)).EndInit();
            ((ISupportInitialize) (cbOptions_ShowShortcutInTips.Properties)).EndInit();
            ((ISupportInitialize) (tabControl)).EndInit();
            tabControl.ResumeLayout(false);
            ((ISupportInitialize) (tbNBDlgName.Properties)).EndInit();
            pnlNBDlg.ResumeLayout(false);
            ((ISupportInitialize) (cbOptions_largeIcons.Properties)).EndInit();
            ((ISupportInitialize) (cbOptions_MenuAnimation.Properties)).EndInit();
            ResumeLayout(false);
        }
    }
}